using AutoMapper;
using Notification.API.Application.CommandHandler.Notifications;
using Notification.API.Application.Controller.Notification;
using Notification.API.DTOs.Notifications;
using Notification.Domain;
using Notification.Infrasturcture.Repositorys;

namespace Reporting.API
{
    public class MapingProfile : Profile
    {
        public MapingProfile()
        {
            //显示到货
            CreateMap<ProductDetails, NotificationDTOs>();
            //新增到货
            CreateMap<AddNotificationCommand, ProductDetails>().ReverseMap();
            //删除到货
            CreateMap<ProductDetails,DelNotificationCommand>().ReverseMap();
            //更新到货
            CreateMap<UpdNotificationCommand, ProductDetails>().ReverseMap();
            CreateMap<ProductDetails, DelNotificationCommand>().ReverseMap();
            //更新到货
            CreateMap<UpdNotificationCommand, ProductDetails>().ReverseMap();
            //查询到货
            CreateMap<ProductDetails, SelectNotificationCommand>().ReverseMap();
        }
    }
}
